// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import ID_information from "./ID_information";
import US_information from "./US_information";

const {ccclass, property} = cc._decorator;

export enum city {
    US = 0,
    ID = 1,
}

@ccclass
export default class languageManager {

    static curCity = city.ID;

    static curCityInformation = null;

    static initCityInformation(){
        if(this.curCity == city.US){
            this.curCityInformation = new US_information();
        }else if(this.curCity == city.ID){
            this.curCityInformation = new ID_information();
        }
    }

    //获取选关界面的字符串
    static getChooseLevelRankLevelString(){
        return this.curCityInformation.chooseLevelRankLevelString;
    }

    //设置游戏规则按钮字符串
    static getRandomShowSkinString(){
        return this.curCityInformation.randomShowSkinString;
    }

    //主界面随机皮肤提示的字符串
    static gettSettingViewRuleBtnString(){
        return this.curCityInformation.settingViewRuleBtnString;
    }

    //游戏规则说明的字符串
    static getGameRuleViewFontString(){
        return this.curCityInformation.gameRuleViewFontString;
    }

    
}
